<html lang="en" xml:lang="en"><head>
<META http-equiv="Content-Type" content="text/html">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><META name="description" content="The Filter widget allows you to limit the visibility of features in a layer."><meta name="content-language" content="en"><link href="rsrc/htmlhelp.css" rel="stylesheet" type="text/css"><title>Web AppBuilder for ArcGIS | Help - 
Filter widget
</title>
                <script type="text/javascript" language="JavaScript">
                    var pathL  = self.location.pathname.split ("/");
                    var fname = pathL[pathL.length-1];
                    var i = fname.lastIndexOf (".htm");
                    if (i>=0) {
                    fname = fname.substring (0, i)
                    } else {
                    //??
                    }
                    if (self.location.hash) {
				    		      fname = fname + self.location.hash;
						        }
                    self.location.replace ("../index.html#//" + fname);
                </script>
                </head><!--Publication GUID: [GUID-E7D1C130-8F87-4109-8D61-E73A46083F52]--><!--Topic GUID: [GUID-6F84827A-E6BA-4F89-9E05-C6E22326B8D1]--><body><div id="content"><div class="header"><h1>
Filter widget
</h1><div id="breadcrumb"></div></div>
<p id="GUID-349B67AD-873C-4482-B2E5-1D6DFA20FA2F">The Filter widget allows you to limit the visibility of features in a layer. Only the features that meet the expression criteria will be visible in the map. Accordingly, other out-of-the-box widgets, if applicable,  will respond to the change it makes in the layer.</p><div class="section1" id="GUID-BD9C62A9-1F9B-4C3C-A278-EDF1EB585985" purpose="section1"><h2>
Configuring the Filter widget
</h2><p id="GUID-87C3EE49-9EA2-4266-B4FD-DD30C8CD8B10">
 The Filter widget can be set to open automatically when apps start. To do so, click the dot on the widget to change it to dark green.
</p></div>
<div class="wfsteps" purpose="wfsteps"><h4></h4><div class="steps" id="GUID-902738B6-D947-426D-93E8-4E6F80F7DFF4"><div class="step_title">Steps:</div><ol><li purpose="step" id="GUID-7CF9CD3A-F82D-4966-B11F-61CDB963EEC8">
<span purpose="cmd" id="GUID-0CFD5DE8-EB50-4A3A-87A7-5F983662162B">
 Hover over the widget and click the small edit icon <img purpose="img" placement="inline" alt="Edit" title="Edit" src="03w3/GUID-31D329BD-BC73-4BBE-AE1D-3A1261BF912A-web.png">. The configuration window for this widget opens.
</span>
</li><li purpose="step" id="ESRI_STEP_189CBB131C294ACBBEAF882D3BD27094"><span purpose="cmd" id="GUID-CE2B0305-59C2-44C7-AC6D-B3662E3D2B1A">Optionally click <span class="uicontrol">change widget icon</span> and replace it with your own image.</span><div class="info" purpose="info"><p id="GUID-CEF5B9EE-1AAF-448E-99B1-0AB941C28176">A file explorer window opens, allowing you to select a local image file to use as the widget icon.</p></div></li>
<li purpose="step" id="GUID-4CF9AC16-30CE-486E-90EB-1E0B23ABE6B6">
<span purpose="cmd" id="GUID-216DC69A-708B-4863-B616-B94645F411E5">
Click <span class="uicontrol">+ New Filter</span> and select a layer from the <span class="uicontrol">Layer</span> drop-down list.</span>
     </li><li purpose="step" id="ESRI_STEP_10DB745D2AEB430FB90E5921B50E2472"><span purpose="cmd" id="GUID-B4260DD8-EC20-4047-8D30-BD466D34CC07">Name the filter in the <span class="uicontrol">Title</span> text box.</span></li><li purpose="step" id="ESRI_STEP_DA9B3DF1D8B94E4AA354DF17E6C4453E"><span purpose="cmd" id="GUID-4F1CA12C-C399-45EE-AB70-69440EE21F6E">Browse to your  local images to choose an icon for the filter. The default icon will apply if you don't specify it.</span></li><li purpose="step" id="ESRI_STEP_829844E9C2C64952A89A783143DB3206"><span purpose="cmd" id="GUID-7F5BB14A-D1F0-40B6-8552-74BCCBE19703">Optionally click the box left to <span class="uicontrol">Remove the preset layer filteres from the map</span> if you don't want to carry over the filters in the map to your  app. </span></li><li purpose="step" id="ESRI_STEP_85835F4BC6F24733A2A5D5CA38E309CE"><span purpose="cmd" id="GUID-57A6D0B4-0A79-4EF6-AEE7-16136715A4C8">Click <span class="uicontrol">Add a filter expression</span>.</span><div class="substeps" id="ESRI_SUBSTEPS_A0CB877C9BD44D0AA5AA6A466C91084A" purpose="substeps"><ol><li purpose="substep" id="ESRI_SUBSTEP_F9D506F0184746C4B10C778B0DBCADFA"><span purpose="cmd" id="GUID-A9EC225F-034E-4D66-9224-7FF23133BA55">Click the <span class="uicontrol">Field</span> drop-down arrow and choose the field you want to filter against from the list.</span></li><li purpose="substep" id="ESRI_SUBSTEP_FEB3123B739A44A58B8B345DC819D9B7"><span purpose="cmd" id="GUID-BD098D15-23A2-43A2-9DF2-BB2B40C564D1">Click the <span class="uicontrol">Operators</span> drop-down arrow and choose an operator from the list.</span></li><li purpose="substep" id="ESRI_SUBSTEP_84C27E95F0704D85AEBE16218F72F931"><span purpose="cmd" id="GUID-BAD5A127-5029-453C-A6E8-CCC1D8F297D1">If you want to filter based on a specific value, choose <span class="uicontrol">Value</span> and enter a value in the field. Click the box to the left of <span class="uicontrol">Ask for values</span> if you want to set up an interactive expression. Enter information about the value in the <span class="uicontrol">Prompt</span> field and a hint in the <span class="uicontrol">Hint</span> field.</span></li><li purpose="substep" id="ESRI_SUBSTEP_AD588A7BBF55441187B1CB6E4927CBC6"><span purpose="cmd" id="GUID-F9ABE6F9-C317-474A-B770-AB0AFA9B02F9">If you want to compare the value in one field versus the value in another field, choose <span class="uicontrol">Field</span>, click the drop-down arrow, and choose the field for your expression.</span></li><li purpose="substep" id="ESRI_SUBSTEP_383DB94FAE7344C2B581AA81A129073D"><span purpose="cmd" id="GUID-53C20F5D-0800-40A0-93F2-A917834A9D82">If you want to filter based on a specific value in the field you've selected for your expression, choose <span class="uicontrol">Unique</span> and select a unique value from your field. It also allows you to only show the values based on the previous expressions if you click the box to the left of <span class="uicontrol">Ask for values</span>. Enter information about the value in the <span class="uicontrol">Prompt</span> field and a hint in the <span class="uicontrol">Hint</span> field. Uncheck <span class="uicontrol">Only show values filtered by previous expressions</span> if you want to show all the values.</span><div class="info" purpose="info"><div class="notes" id="GUID-E4562E26-058D-48B4-8C81-12E954066F9D"><div class="note"><img class="note_img" src="rsrc/note.png" alt="Note" title="Note"><span>Note:</span></div><div class="tipbody"><p id="GUID-B4964453-E7E4-4E45-8544-13B1B9EF62E0"> Unique value filters require a 10.1 or later
map service layer. The  Unique  option does not appear if you are creating a
filter on a 10.0 or earlier service layer.</p>


</div></div></div></li></ol></div><div class="info" purpose="info"><div class="notes" id="GUID-E3D91B5C-9BE7-42E1-9315-869AFD9EB650"><div class="note"><img class="note_img" src="rsrc/note.png" alt="Note" title="Note"><span>Note:</span></div><div class="tipbody"><p id="GUID-B455A9D2-C496-4CED-9F7F-3601C595C13E">If you created an expression based on values or a unique value, you can set up an interactive expression by clicking the box to the left of <span class="uicontrol">Ask for values</span>. You cannot ask for values on expressions based on a field.</p></div></div></div></li><li purpose="step" id="ESRI_STEP_07BAC31DBA73428ABD89DEDFD17FCD7E"><span purpose="cmd" id="GUID-4A87B26F-0EFC-433E-9164-8874DFD80CEE">To  create multiple expressions, or one or more sets of expressions, click <span class="uicontrol">Add a filter expression</span> or <span class="uicontrol">Add an expression set</span>.</span><div class="info" purpose="info"><p id="GUID-D60E5C05-3EAF-4BB7-B12C-99A9542428A3"> A set is a grouping of expressions, for
example, Shelter capacity is greater than 200 and  Status is open.</p>


</div></li><li purpose="step" id="ESRI_STEP_BE658461E6554B349E55D2D6FAF35B80"><span purpose="cmd" id="GUID-73167B42-95E3-472E-9917-EBEB8BD01EEE">You can decide whether to <span class="uicontrol">Turn off query result layers when the widget is closed</span> by using this option.</span></li><li purpose="step" id="ESRI_STEP_44318D43E3D94E0FA1B0CFF542CF5951"><span purpose="cmd" id="GUID-98910FC9-5BF9-4E0C-A227-FA529AFD5419">To add another filter, repeat steps 1 through 7.</span></li><li purpose="step" id="ESRI_STEP_DAA0668D1AAB4E56ACA33E64BAE73E34"><span purpose="cmd" id="GUID-D1B2243A-91F2-42F1-BB66-B5B50A9820D3">Hover over the filter you created in the table to delete or order it. </span></li><li purpose="step" id="ESRI_STEP_FB8278C41B284E2BAAB96AD3B97D5FB6"><span purpose="cmd" id="GUID-6053CA7E-C96B-4E74-9C96-5B36DFDF00A5">Click <span class="uicontrol">OK</span> to save and close the configuration.</span></li>
</ol></div></div>
<div class="section1" id="ESRI_SECTION1_4AF11DD8E98247B3B8275837D6870BCE" purpose="section1"><h2>Using the Filter widget</h2><p id="GUID-10CEC71D-ED50-4DF9-B2DB-39F52F3801B1">You can apply multiple filters simultaneously or apply an individual filter to the map.</p></div><div class="wfsteps" purpose="wfsteps"><h4></h4><div class="steps" id="ESRI_STEPS_B0EF21881534426B93276190D621950B"><div class="step_title">Steps:</div><ol><li purpose="step" id="ESRI_STEP_F1ABDFBF49FD4CA6A65176D84CF2360B"><span purpose="cmd" id="GUID-448DB246-ADED-4786-9743-753E5CE38BDF">Click the Filter widget icon to open it.<div class="image" purpose="image"><table><tr><td><img class="break" src="03w3/GUID-5EEB75F0-6AE7-45E9-B35A-5EA1F7B6D14F-web.png" purpose="img" alt="Filters" title="Filters"></td></tr></table></div></span></li><li purpose="step" id="ESRI_STEP_C77C923C11EF43C1A25CD8D2674046F2"><span purpose="cmd" id="GUID-56C2A07A-044F-4155-994D-93D7D44791A3">Click the filter you specify to limit  features on the map. The <img purpose="img" placement="inline" alt="Applied" title="Applied" src="03w3/GUID-F2888DBA-C332-4E24-AE34-BC52BBCDC444-web.png"> icon appears after the filter is applied. Click the filter button again to remove the filtering from the map.</span></li><li purpose="step" id="ESRI_STEP_CDBAD1E87E9449C2842BD69E51B7341F"><span purpose="cmd" id="GUID-7EF9B038-1B13-4C26-BE66-D8E7BBA052D0">Type a value in the text box and  click <span class="uicontrol">Apply</span> if <span class="uicontrol">Ask for values</span> is checked when the filter is created. Click the filter button to remove the filtering from the map. You may notice the <img purpose="img" placement="inline" alt="Setting" title="Setting" src="03w3/GUID-25056F96-74EA-4BA5-BA25-906E970AE27E-web.png"> icon. Click it to hide the input box for the query value.</span>  </li></ol></div></div>
<div class="footer"> Copyright © 1995-2016 Esri. All rights reserved. </div></div></body></html>